import http from "@/utils/request";

export const regiterApi = (data: object) => {
  return http.post("/api/user/docheckphone", data);
};
export const sendCodeApi = (data: object) => {
  return http.post("/api/user/dosendmsgcode", data);
};
// 检查验证码
export const checkCodeApi = (data: object) => {
  return http.post("/api/user/docheckcode", data);
};
// 提交密码
export const finishRegisterApi = (data: object) => {
  return http.post("/api/user/dofinishregister", data);
};
export const loginApi = (data: object) => {
  return http.post("/api/user/login", data);
};
